package com.shequan.demo.service;

import java.util.List;

import com.shequan.common.bean.ResultDataStruct;
import com.shequan.demo.bean.pojo.DemoUserInfo;
/**
 * <P>
 * Copyright 2012 shequaner.
 * All Rights Reserved.
 * @author Liust
 * @version 1.0, 2012-2-20
 * @see com.shequan.demo.service.DemoService 
 * @since 1.0
 */
public interface DemoService {
	/**
	 * 获得所有用户信息
	 * @return
	 * @throws Exception
	 */
	public List<DemoUserInfo> getAllUsers() throws Exception;
	/**
	 * 用户登录
	 * @param userName
	 * @param userPwd
	 * @return
	 * @throws Exception
	 */
	public DemoUserInfo getUserInfo4Login(String userName, String userPwd) throws Exception;
	/**
	 * 用户注册
	 * @param userName
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public ResultDataStruct<Integer> registUser(String userName, String password) throws Exception;
	
}
